package com.designpattern.builder.demo2;

public class Test {
    public static void main(String[] args) {
        Worker worker = new Worker();
//        默认
//        Product product = worker.getProduct();
//        链式编程
        Product product = worker.builderA("全家桶").builderB("雪碧").getProduct();
        System.out.println(product.toString());
    }
}
